package com.zmj.sy.mom.srv.aps.utils;

import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@NoArgsConstructor(access = lombok.AccessLevel.PRIVATE)
@Getter
public class WorkshopProp {

    public static final String DEFAULT_LINE_CODE = "17001";
    public static final String FJ_GROUP = "1-3_ZDFJ_00";
    public static final String YC_GROUP = "1-1_SC_GBCL_01";
    public static final String PT_GROUP = "4-3_PTX_00";
    public static final String LL_GROUP = "0-1_LL_00";
    public static final String KJ_GROUP = "2-4_KJGW_00";
    public static final String LL_STATION_FIRST = "LL01";

    public static final String FIRST_STATION_CODE = "1-1_SC_GBCL_01";

//    public static String fjPhaseCode = "PART_FINISH";
//    public static String ppPhaseCode = "PP";
   public static final String DEFAULT_USER = "operator";

    public static final String NESTING_DRAWING_CTX = "http://172.31.3.108:5000/";

    public static final String HG_PHASE_CODE = "HG";
    public static final String JG_PHASE_CODE = "JG";
//    public static final String QG_PHASE_CODE = "QG";
    public static final String LL_PHASE_CODE = "LL";
    public static final String JP_PHASE_CODE = "JP";
    public static final String PK_PHASE_CODE = "PK";

    public static final String YC_PHASE_CODE = "YC";
    public static final String YM_PHASE_CODE = "YM";
    public static final String ZW_PHASE_CODE = "ZW";
    public static final String BX_PHASE_CODE = "BX";
    public static final String BZ_PHASE_CODE = "BZ";
    public static final String WJ_PHASE_CODE = "WJ";
    public static final String FJ_PHASE_CODE = "FJ";
    public static final String WL_PHASE_CODE = "WL";
    public static final String KJ_PHASE_CODE = "KJ";
    public static final String PD_PHASE_CODE = "PD";
    public static final String FM_PHASE_CODE = "FM";
    public static final String PZ_PHASE_CODE = "PZ";
    public static final String XH_PHASE_CODE = "XH";
    public static final String PP_PHASE_CODE = "PP";
    public static final String PT_PHASE_CODE = "PT";
    public static final String RK_PHASE_CODE = "RK";//  入成品库
    public static final String WW_PHASE_CODE = "WW";

    public static final String PP_PHASE_NAME = "待配盘";
    public static final String KJ_PHASE_NAME = "库检";
    public static final String LL_PHASE_NAME = "领料";

    public static final String APPEND_BOM_CODE = "000000001";

    public static final String MES_PART_FLAGE = "mesPart";

    public static final List<String> BOTTLENECK_PHASE_CODE = Lists.newArrayList(PZ_PHASE_CODE, XH_PHASE_CODE);

//    public static final List<String> BOTTLENECK_PHASE_CODE = Lists.newArrayList();


    /**
     * 平衡率正则
     */
    public static final String PH_PATTERN = "P([1-6]|DB)";

    /** PZ工序所需时间 */
    public static final Integer PZ_SECOND = 60 * 60 * 8;
    //日志长度
    public static final Integer LOG_SIZE = 400;
    /** 预处理所需时间 */
    public static final long  YC_SECOND = 6;


    private static final Map<String, Integer> materTypeMap = new HashMap<>();

    static {
        materTypeMap.put("Platepart", 1);
        materTypeMap.put("Component", 1);
        materTypeMap.put("Assembly", 2);
    }
}
